package com.myspring;

import com.alibaba.druid.pool.DruidDataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;

import javax.sql.DataSource;

//作为SpringBoot工程的主配置（java配置）与启动类
//主配置类会自动加载其所在包以及子包内的注解配置信息
@SpringBootApplication
//扫描mapper所在位置
@MapperScan(basePackages = "com.myspring.mapper")
public class HelloApplication {
    public static void main(String[] args) {
        SpringApplication.run(HelloApplication.class,args);
    }
}
